{% extends "analysis_plugins/general_information.html" %}

{% block analysis_result_details %}

{% for cwe in analysis_result.cwe_results | sort_dict_list("cwe_id") %}
    <tr>
        <td>
            <a target="_blank" rel="noopener noreferrer" href="https://cwe.mitre.org/data/definitions/{{ cwe.cwe_id | fix_cwe }}.html">
                {{ cwe.cwe_id }}
            </a>
            ({{ cwe.plugin_version }})
        </td>
        <td>
            <ul>
                {% for message in cwe.warnings %}
                    <li>{{ message }}</li>
                {% endfor %}
            </ul>
        </td>
    </tr>
{% endfor %}

{% endblock %}
